import crypto from 'crypto'
import config from '../config'

export default (content = '') => {
  return crypto.createHmac('sha256', config.secret)
               .update(content)
               .digest('hex')
}